﻿create procedure [dbo].[user_create]
	@user_id int out,
    @username varchar(50), 
    @hashed_password varchar(200),
	@password_salt varchar(200),
    @email varchar(200), 
	@is_admin bit
as
begin
	insert into [dbo].[user]
	values 
	(
		@username,
		@hashed_password,
		@email,
		@is_admin
	)
	set @user_id = @@IDENTITY 
end

